/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pkl53.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author HP G42 (RILLA)
 */
@Embeddable
public class NoBsPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "B1R1")
    private String b1r1;
    @Basic(optional = false)
    @Column(name = "B1R2")
    private String b1r2;
    @Basic(optional = false)
    @Column(name = "B1R3")
    private String b1r3;
    @Basic(optional = false)
    @Column(name = "B1R5A")
    private String b1r5a;

    public NoBsPK() {
    }

    public NoBsPK(String b1r1, String b1r2, String b1r3, String b1r5a) {
        this.b1r1 = b1r1;
        this.b1r2 = b1r2;
        this.b1r3 = b1r3;
        this.b1r5a = b1r5a;
    }

    public String getB1r1() {
        return b1r1;
    }

    public void setB1r1(String b1r1) {
        this.b1r1 = b1r1;
    }

    public String getB1r2() {
        return b1r2;
    }

    public void setB1r2(String b1r2) {
        this.b1r2 = b1r2;
    }

    public String getB1r3() {
        return b1r3;
    }

    public void setB1r3(String b1r3) {
        this.b1r3 = b1r3;
    }

    public String getB1r5a() {
        return b1r5a;
    }

    public void setB1r5a(String b1r5a) {
        this.b1r5a = b1r5a;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (b1r1 != null ? b1r1.hashCode() : 0);
        hash += (b1r2 != null ? b1r2.hashCode() : 0);
        hash += (b1r3 != null ? b1r3.hashCode() : 0);
        hash += (b1r5a != null ? b1r5a.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NoBsPK)) {
            return false;
        }
        NoBsPK other = (NoBsPK) object;
        if ((this.b1r1 == null && other.b1r1 != null) || (this.b1r1 != null && !this.b1r1.equals(other.b1r1))) {
            return false;
        }
        if ((this.b1r2 == null && other.b1r2 != null) || (this.b1r2 != null && !this.b1r2.equals(other.b1r2))) {
            return false;
        }
        if ((this.b1r3 == null && other.b1r3 != null) || (this.b1r3 != null && !this.b1r3.equals(other.b1r3))) {
            return false;
        }
        if ((this.b1r5a == null && other.b1r5a != null) || (this.b1r5a != null && !this.b1r5a.equals(other.b1r5a))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "pkl53.model.NoBsPK[ b1r1=" + b1r1 + ", b1r2=" + b1r2 + ", b1r3=" + b1r3 + ", b1r5a=" + b1r5a + " ]";
    }
    
}
